package com.smh.service.serviceImpl;

import com.smh.dao.ClassDao;
import com.smh.pojo.ClassInfo;
import com.smh.service.ClassService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class ClassServiceImpl implements ClassService {

    @Autowired
    private ClassDao classDao;

    @Override
    public String add(ClassInfo classInfo) {
        return classDao.add(classInfo);
    }

    @Override
    public List<ClassInfo> search() {
        return classDao.search();
    }

    @Override
    public void delete(ClassInfo classInfo) {
        classDao.delete(classInfo);
    }

    @Override
    public void update(ClassInfo classInfo) {
        classDao.update(classInfo);
    }

    @Override
    public ClassInfo query(ClassInfo classInfo) {
        return classDao.query(classInfo);
    }
}
